<div class="content">
    <header>
        <h2 class="title">
            OI开源 H5Charts
        </h2>
        <div class="subtitle">
            一个基于 JavaScript 的开源可视化图表库
        </div>
        <div class="btns">
            <a href="javascript:void(0)" onClick="goto('doc/manual')" class="btn full">
                <span class="svg book"></span>
                快速入门
            </a>
            <a href="javascript:void(0)" onClick="goto('example/index')" class="btn plain">
                <span class="svg copy"></span>
                所有示例
            </a>
            <a href="https://github.com/handless-ui/H5Charts" target="_blank" class="github">
                github
            </a>
        </div>
        <div class="chart">
            <div class="btn"></div>
        </div>
    </header>
</div>
<style>
    .content {
        padding-top: calc(50vh - 250px);
    }

    .content>header {
        width: 1000px;
        margin-left: calc(50% - 500px);
        position: relative;
    }

    .content>header>.title {
        font-size: 75px;
        font-weight: 800;
        color: #081642;
        line-height: 1.2em;
    }

    .content>header>.subtitle {
        font-size: 21px;
        color: #1d2b5a;
        margin-top: 15px;
    }

    .content>header>.btns {
        margin-top: 40px;
        display: flex;
    }

    .content>header>.btns>.btn {
        width: 150px;
        height: 60px;
        border-radius: 30px;
        display: inline-block;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        transition-duration: 0.5s;
        transition-property: box-shadow;
        margin-right: 15px;
    }

    .content>header>.btns>.btn>.svg {
        width: 22px;
        height: 22px;
        display: inline-block;
        background-repeat: no-repeat;
        background-position: center center;
        margin-right: 5px;
        background-size: 100% auto;
    }

    .content>header>.btns>.btn>.svg.copy {
        background-image: url("./images/copy.svg");
    }

    .content>header>.btns>.btn>.svg.book {
        background-image: url("./images/book.svg");
    }

    .content>header>.btns>.btn:hover {
        box-shadow: 0px 5px 10px 0 rgba(0, 0, 0, 0.2);
    }

    .content>header>.btns>.btn.full {
        background-color: #024b9d;
        color: #fff;
    }

    .content>header>.btns>.btn.plain {
        border: 1px solid #024b9d;
        color: #024b9d;
    }

    .content>header>.btns>.github {
        display: inline-block;
        font-size: 0;
        width: 56px;
        height: 56px;
        background-image: url("./images/github.svg");
        background-repeat: no-repeat;
        background-position: center center;
    }

    .content>header>.chart {
        position: absolute;
        right: 20px;
        top: 20px;
        width: 400px;
        height: 400px;
        background-image: url("./images/chart.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
    }

    .content>header>.chart>.btn {
        width: 60px;
        height: 60px;
        background-image: url("./images/play.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        position: absolute;
        left: calc(50% - 30px);
        top: calc(50% - 30px);
    }

    .content>header>.chart>.btn::before {
        animation: chart-btn-play 1.5s ease-out infinite;
        border: 4px solid #024b9d;
        border-radius: 150%;
        box-shadow: 0 0 10px #024b9d;
        box-sizing: border-box;
        content: "";
        height: 140%;
        left: -20%;
        position: absolute;
        top: -20%;
        width: 140%
    }

    @keyframes chart-btn-play {
        0% {
            transform: scale(0.5)
        }

        to {
            opacity: 0
        }
    }
</style>